<?php
/**
 * WB_S3BucketInfo class
 * 
 * @author Jean-Lou Dupont
 * @version @@package-version@@
 * @id $Id: S3BucketInfo.php 143 2008-03-14 18:53:35Z jldupont $
 */

 //{{include
 require_once 'web-bloks/AmazonS3/info/S3EntityInfo.php';
 //include}}
 
 class WB_S3BucketInfo
 	extends WB_S3EntityInfo
 {
	/**
	 * Fields related to a particular bucket
	 */
	 static $fieldsBody = array(
	 
	 	'name',
		'creationdate',

	 );

	// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%		
	// Interface
	// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%				
	public function initFromRaw( &$raw )	
	{
		return $this->init( $raw, null, self::$fieldsBody );
	}
	
 } // end class declaration
 
  /* SAMPLE RESPONSE (from s3-dg-20060301.pdf)
    -----------------------------------------
	<?xml version="1.0" encoding="UTF-8"?>
	<ListAllMyBucketsResult xmlns="http://doc.s3.amazonaws.com/2006-03-01">
		<Owner>
			<ID>bcaf1ffd86f41caff1a493dc2ad8c2c281e37522a640e161ca5fb16fd081034f</ID>
			<DisplayName>webfile</DisplayName>
		</Owner>
	<Buckets>
		<Bucket>
			<Name>quotes;/Name>
			<CreationDate>2006-02-03T16:45:09.000Z</CreationDate>
		</Bucket>
		<Bucket>
			<Name>samples</Name>
			<CreationDate>2006-02-03T16:41:58.000Z</CreationDate>
		</Bucket>
	</Buckets>
	</ListAllMyBucketsResult>
 */